Skip to main content

parseItemsAsStringList

Type​

handler

Summary​

Parse a comma-delimited "item" string as a list of strings

Syntax​

parseItemsAsStringList(<pStringValue>,<pListLength>,<pDefaultValue>)

Description​

Helper function for converting a LiveCode Script "item" list into list of strings, obeying the LiveCode Script rules for items.

If pListLength is provided, then the returned list will always contain that number of elements: extra elements will be discarded, and missing elements will be set to pDefaultValue.

Parameters​

NameTypeDescription

pStringValue

A string containing comma-delimited "items"

pListLength

The number of elements the parsed list should contain

pDefaultValue

Value to be used for extra elements

Value​

NameTypeDescription

return

The parsed items as a list of strings

handler: parseItemsAsNumberList, formatStringListAsItems